import IBulletinVO from '@/model/vo/bulletin/IBulletinVO'
import { getNameByValueAndDictList } from '@/util/CommonUtil'
import { OptionProps } from '@douyinfe/semi-ui/lib/es/select'

export default (dictList: OptionProps[]) => [
  {
    title: '公告类型',
    dataIndex: 'type',
    render: (text: any, record: IBulletinVO, index: number) => {
      return getNameByValueAndDictList(dictList, record.type!)
    },
  },
  { title: '标题', dataIndex: 'title' },
  { title: '公告内容', dataIndex: 'content' },
  { title: '发布时间', dataIndex: 'sendTime', sorter: true },
]
